package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 工单定额异常 流程 明细对象 main_process_order_quota_detail
 *
 * @author qijian
 * @date 2024-04-23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_process_order_quota_detail")
public class ProcessOrderQuotaDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long mainId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工单id")
    private Long workId;

    @ApiModelProperty(value = "原工时")
    private BigDecimal oriWorkTime;

    @ApiModelProperty(value = "原定额")
    private BigDecimal oriWorkCost;

    @ApiModelProperty(value = "新工时")
    private BigDecimal newWorkTime;

    @ApiModelProperty(value = "新定额")
    private BigDecimal newWorkCost;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工序id")
    private Long processId;

    @ApiModelProperty(value = "工序名")
    private String processName;

    @ApiModelProperty(value = "是否调整")
    private Boolean isAdjust;

    @ApiModelProperty(value = "0 未审核过 1 审核通过")
    private Integer status;

}
